package com.hhs.storage.controller;


import com.github.xiaoymin.knife4j.annotations.ApiSupport;
import com.hhs.storage.bean.InputParam;
import com.hhs.storage.bean.ResponseBean;
import com.hhs.storage.bean.ResponseBeanPage;
import com.hhs.storage.bean.ZrHandphonePhoto;
import com.hhs.storage.service.ZrHandphonePhotoService;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;
import springfox.documentation.annotations.ApiIgnore;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

@RestController
@RequestMapping("/zrhandphonephoto")
@ApiSupport(order = 6)      //排序
@Api(tags = "总结报告接口")
public class ZrHandphonePhotoController {
    @Resource
    ZrHandphonePhotoService zrHandphonePhotoService;

    @RequestMapping(value = "savePhoto")
    public ResponseBean<ZrHandphonePhoto> savePhoto(@ApiIgnore ZrHandphonePhoto zrHandphonePhoto,
                                                    @RequestParam(value = "photoList", required = false) MultipartFile[] photoList,
                                                    String deleIdStr,
                                                    HttpServletRequest request) {
        return zrHandphonePhotoService.savePhoto(zrHandphonePhoto, photoList, deleIdStr, request);
    }
    @RequestMapping(value = "table")
    public ResponseBeanPage<ZrHandphonePhoto> table(@ApiIgnore InputParam inputParam) {
        return zrHandphonePhotoService.table(inputParam);
    }
}

